<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>

<div>
  <h2>新增待办项</h2>
  <div>
    <form action="/" method="post">
      待办内容：<input type="text" name="content"> <br>
      截止时间：<input type="text" name="deadline"> <br>
      <input type="submit" name="submit" value="提交">
    </form>
  </div>
  <h2>待办列表</h2>
  {% for data in datas %}
    <div style="background-color: #eee; margin: 10px auto;">
      截止时间：{{ data.deadline }} <br/>
      待办内容：{{ data.content }} <br/>
      <a href="/edit?id={{ data.id }}">修改</a>  <br/>
      <a href="/delete?id={{ data.id }}">删除</a>  <br/>
    </div>
  {% endfor %}
</div>

</body>
</html>